from openpyxl import Workbook


def create_excel():
    wb = Workbook()
    return wb


def create_sheet(wb, title, is_first):
    if is_first:
        ws = wb.worksheets[0]
        ws.title = title
    else:
        ws = wb.create_sheet(title)
    return ws


def add_to_sheet(workbook_sheet, info, row):
    for col in range(1, len(info) + 1):
        # col_letter = get_column_letter(col)
        workbook_sheet.cell(row, col, info[col - 1])


def save_excel(wb, save_path):
    wb.save(save_path)
